﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Job.Web.Framework
{
    public class BasePage : System.Web.UI.Page
    {
        protected static MyRequest myR = new MyRequest();

        public virtual void LoadCtrl(string CtrlFilePathName)
        {
            Control ctrl = this.LoadControl(CtrlFilePathName);
            ((PlaceHolder)this.FindControl("phMain")).Controls.Add(ctrl);
        }

        public virtual void LoadCtrl(string CtrlFilePathName,string placeHolderId)
        {
            Control ctrl = this.LoadControl(CtrlFilePathName);
            ((PlaceHolder)this.Master.FindControl("mainContent").FindControl(placeHolderId)).Controls.Add(ctrl);
        }
    }
}
